package com.kd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;
import java.util.Date;

@TableName("orders")
public class Order {
    @TableId(value = "oid", type = IdType.INPUT)
    @JsonProperty("oid")
    private Long oid;  //oid应该是integer吧，先把日期转换成20250926数字，然后把20250926*100+100+get（获取当天有多少订单），若0就是0+1，不就是20250926101了吗
    private Integer cid;
    private Integer pid;
    private Date orderDate;
    private Date eta;
    private BigDecimal price;
    private Integer quantity;
    private BigDecimal totalAmount;
    private String image;
    private String remark;
    private Integer status = 0; // 0-订单待激活 1-生产中 2-已送达 3-已结算,前端枚举

    public Long getOid() {
        return oid;
    }

    public void setOid(Long oid) {
        this.oid = oid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Date getEta() {
        return eta;
    }

    public void setEta(Date eta) {
        this.eta = eta;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }



    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

//    public Integer getDeliveryEid() {
//        return deliveryeid;
//    }
//
//    public void setDeliveryEid(Integer deliveryEid) {
//        this.deliveryeid = deliveryEid;
//    }
//
//    public Date getDeliveryTime() {
//        return deliveryTime;
//    }
//
//    public void setDeliveryTime(Date deliveryTime) {
//        this.deliveryTime = deliveryTime;
//    }
//
//    public Integer getSettleEid() {
//        return settleeid;
//    }
//
//    public void setSettleEid(Integer settleEid) {
//        this.settleeid = settleEid;
//    }
//
//    public Date getSettleTime() {
//        return settleTime;
//    }
//
//    public void setSettleTime(Date settleTime) {
//        this.settleTime = settleTime;
//    }
}